home *** CD-ROM | disk | FTP | other *** search
- Path: tucson.princeton.edu!miker
- From: miker@tucson.princeton.edu (CIT Information Centers)
- Newsgroups: comp.lang.c
- Subject: compiling- gcc v.s. cc
- Date: 31 Jan 1996 05:43:34 GMT
- Organization: Princeton University
- Distribution: world
- Message-ID: <4emvi6$j4@cnn.Princeton.EDU>
- NNTP-Posting-Host: tucson.princeton.edu
-
-
- I am a mathematician and have written most of my C programs
- for my own use. Unfortunately, I now need to make a program of mine
- available to the world and have some questions.
-
- 1) Is the GNU C compiler (gcc) a standard compiler that most unix
- users have at their disposal?
- The reason I'm asking is because I want to provide instructions
- for compiling my program. I've been using gcc and it works fine.
- I experimented with cc but did did not get consistent results.
- On an SGI it compiled fine (both with gcc and cc), but not on
- Sun-4 it only compiled with gcc and not with cc (cc produced
- a lot of error messages which seem to be connected to the
- way I declared my functions. I use prototype form as opposed
- to traditional form).
-
- this brings me to question...
-
- 2) Why would a program compile fine with cc on one machine but not on
- another?
-
- 3) What's the difference between cc and gcc?
-
- 4) Is there a good web site that answers any of these questions?
-
- Michael Rubinstein.
-